﻿@model HanGu.Entity.MemberChildren
@{
    Layout = null;
    ViewBag.Title = "客户子女管理";
    var SexList = ViewData["SexList"] as SelectList;

}
<div class="pageContent">
<script>
$("#@ViewData["CurrentController"]Form #Sex").val('@(Model.Sex ?? "sex_2")');
</script>
    <form method="post" id="@ViewData["CurrentController"]Form" action="CustomerInfo/MemberChildren/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, mydialogAjaxDone);">
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.ID)
    @Html.HiddenFor(model => model.ParentID)
    <div class="pageFormContent" layouth="78">
        <p>
            <label>
                姓名：</label>
            @Html.TextBoxFor(model => model.RealName, new { @class = "required" })
            @Html.ValidationMessageFor(model => model.RealName)
        </p>
        <p>
            <label>
                性别：</label>
            @Html.DropDownListFor(model => model.Sex, SexList, new { @class = "combox required" })
            @Html.ValidationMessageFor(model => model.Sex)
        </p>
        <p>
            <label>
                生日：</label>
            @Html.TextBoxFor(model => model.Birthday, new { @class = "date required", yearstart = "-100", yearend = "0",format = "yyyy-MM-dd", @readonly = "true" })
            @Html.ValidationMessageFor(model => model.Birthday)
        </p>
    </div>
  
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            提交</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            取消</button></div>
                </div>
            </li>
        </ul>
    </div>
    
    </form>
</div>
<script>
$(function(){
$("#@ViewData["CurrentController"]Form #Sex").val("@Model.Sex");
});

</script>
